﻿<script type="text/javascript">
    $(document).ready(function () {
        $("#scroller").simplyScroll();
    });
</script>
@model List<DatNuocViet.Models.GetToursImageResult>
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    string lang = (Session["Language"] == null) ? "vi" : Session["Language"].ToString();
    string url = HttpContext.Current.Request.Url.AbsoluteUri;
}
@helper FormatDatime(DateTime? date)
    {
    DateTime result = (DateTime)date;
    
    @result.ToString("dd-MM-yyyy")
}
@section tourArea1
{
    <div style="border: 1px solid #F1EEEB">
        <h2 class="subtitle">
            @DatNuocViet.Ultility.Helper.Label("trian")
        </h2>
        <div style="padding: 0 12px 12px 12px">
            <div id="social_nav_horizontal">
                <ul>
                    <li style="margin: 0px !important"><a class="delicious" href="http://del.icio.us/post?url=@url" title="Bookmark on del.icio.us">
                        Delicious</a></li>
                    <li><a class="facebook" href="http://www.facebook.com/sharer.php?u=@url"  title="Share this on Facebook" >
                        Facebook</a></li>
                    <li><a class="stumbleupon" href="http://www.stumbleupon.com/submit? url=@url" title="Stumble This Page" >
                        Stumble</a></li>
                    <li><a class="twitter" href="http://twitter.com/home?status=@url" title="Tweet This Page" >
                        Twitter</a></li>
                </ul>
            </div>
            <div style="clear: both">
            </div>
            <div style="margin-top:10px;margin-bottom:10px;">
                <ul id="scroller">
	                @foreach(var item in Model)
                    {
                        <li><img alt="" src="@item.Images.Replace("images/", "images/thumb/")" height="100px" width="140px"></li>
                    }
                </ul> 
            </div>
            <div style="color:#000000; line-height:20px !important;">
                @if (lang == "en")
                { @Html.Raw(HttpUtility.HtmlDecode(((DatNuocViet.Models.GetWebResourceResult)ViewData["Content"]).ValueEn));
                }
                else
                { @Html.Raw(HttpUtility.HtmlDecode(((DatNuocViet.Models.GetWebResourceResult)ViewData["Content"]).ValueVn));
                }
            </div>
        </div>
    </div>
    <div style="height:15px"></div>

    @foreach (var item in ViewBag.commnentList as List<DatNuocViet.Models.Comment>)
    {
    <div class="commentbox">
    <img src="../../images/quote_icon_inv.png" align="absolutmiddle"/><p>@item.CommentContent</p><p style="text-align:right"><img src="../../images/quote_icon.png" /></p></div>
<div class="commentfooter"><strong>@item.Author</strong></div>
    }

    <div class="commentbox">
        <h1>Viết nhận xét</h1>
        <div style="height:10px"></div>
        <form action="@Url.Action("CusComment")" method="post">
        <table cellpadding="5" cellspacing="5" width="100%">
            <tr>
                <td width="60px"><img src="../../images/avatar.gif" /></td>
                <td>
                    <input name="hoTen" id="hoTen" type="text" style="width:350px; height:20px; border:1px solid #CCC; margin-bottom:10px;" placeholder="Họ tên khách hàng"/>
                    <textarea name="NoiDung" id="NoiDung" cols="5" style="width:99%; border:1px solid #CCC" placeholder="Nhập nội dung"></textarea>
                    <div style="height:10px"></div>
                    <button type="submit" title="Tìm kiếm tour" class="button btn-cart">
                                    <span><span>Gửi nhận xét</span></span></button>
                </td>
            </tr>
        </table>
        </form>
    </div>
}
